package com.heyue.demo.Singleton;

/**
 * @author fenghe
 * @date 2022/2/12 12:58
 */
public class StaticClass {
    /** 静态内部类*/

    private static class StaticClassHolder {
        private static final StaticClass INSTANCE = new StaticClass();
    }

    public static StaticClass getInstance() {
        return StaticClassHolder.INSTANCE;
    }
}
